<?php

class View_Helper_PrintBreeds extends Model3_View_Helper
{

    public function showBreedList()
    {
        $breedAdapter = MN_BreedTable::getInstance();
        $breeds = $breedAdapter->showAllBreeds();
        
        echo $breeds;
        ?>
<select name="breed" id="breed">
            <?php
        foreach ($breeds as $breed) {
            ?>
    <option value="<?php echo $breed['id'];?>"><?php echo $breed['name'];?></option>
                <?php
        }
    ?>
</select>
       <?php
    }
    
    public function printBreedby($idBreed)
    {
        $BreedsAdapter = MN_BreedsTable::getInstance();
        return $BreedsAdapter->getBreed($idBreed);
    }
    
}